<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Trombino Hajar Morchid</title>
</head>
<body>

<form method="POST" action="register.php">
<p>Nom<p>
<input type="text" name="nom"/>
<p>prenom</p>
<input type="text" name="prenom"/>
<p>etat</p>
<input type="text" name="etat"/>

<input type="submit" name="submit" value="valider"/>

</form>
<br>
<?php

if(isset($_POST['submit']))
{
$etudiant = htmlspecialchars(trim($_POST['etudiant']));
$exercices = htmlspecialchars(trim($_POST['exercices']));
$note = htmlspecialchars(trim($_POST['note']));
 if($etudiant&&$exercices&&$note)
 {
 
 $connect= mysql_connect("localhost","root","");
 mysql_select_db('etunote');
 $reg = mysql_query("INSERT INTO etudiant VALUES('$etudiant','$exercices','$note')");
 
 }else echo"veuillez saisir tous les champs";
 
 
}

	$xml = simplexml_load_file("https://picasaweb.google.com/data/feed/base/user/113848708930851956597/albumid/5795380358275112865?alt=rss&kind=photo&hl=fr");
	foreach ($xml->channel->item as $item){  
		echo "<img src='".$item->enclosure['url']."' />";
		
		'	


';


	}
?>
</body>
</html>